# -*- coding:utf-8 -*-

from typing import Callable
from fastapi import FastAPI
# from core.database import register_db

def startup(app: FastAPI)-> Callable:
    async def app_start()->None:
        print("FastAPI 已启动")
        # await register_db()
    return app_start

def stopping(app: FastAPI)-> Callable:
    async def app_stop()->None:
        print("FastAPI 已停止")
    return app_stop